$OpenBSD: patch-src_utils_eloop_c,v 1.4 2015/03/18 15:35:44 dcoppa Exp $

don't try to access list members to free them unless already initialised

--- src/utils/eloop.c.orig	Sun Mar 15 12:30:39 2015
+++ src/utils/eloop.c	Wed Mar 18 04:20:32 2015
@@ -1035,6 +1035,9 @@ void eloop_destroy(void)
 	struct eloop_timeout *timeout, *prev;
 	struct os_reltime now;
 
+	if (eloop.timeout.prev == NULL)
+		return;
+
 	os_get_reltime(&now);
 	dl_list_for_each_safe(timeout, prev, &eloop.timeout,
 			      struct eloop_timeout, list) {
